1 using System;
2 using
System.Collections.Generic;
3 using
System.ComponentModel;
4 using
System.Drawing;
5 using
System.Data;
6 using
System.Linq;
7 using
System.Text;
8 using
System.Threading.Tasks;
9 using
System.Windows.Forms;
10
11 namespace
SoftQuanLyNhaHang.Views
12 {
13
14     
//public delegate void LinkDanhSach_KiemKho_EventHandler(object sender, EventArgs e);
15
16     
public delegate void btnKetThucNgayLamViec_EventHandler(object sender, EventArgs e, DateTime ngayLamViec);
17
18     
public delegate void Link_DsSanPhamDaBan_EventHandler(object sender, EventArgs e);
19
20     
public delegate void Link_ChiPhi_DsCp_EventHandler(object sender, EventArgs e);
21
22     
public delegate void Link_BomVaGoiSP_InBC_EventHandler(object sender, EventArgs e);
23
24     
public delegate void Link_Sp_InBC_EventHandler(object sender, EventArgs e);
25
26     
public delegate void Link_NhapH_InBC_EventHandler(object sender, EventArgs e);
27
28     
public delegate void Link_CongNoNcc_InBC_EventHandler(object sender, EventArgs e);
29
30     
public delegate void Link_DsNcc_InBC_EventHandler(object sender, EventArgs e);
31
32     
public delegate void Link_NhapH_TamDungDh_InBC_EventHandler(object sender, EventArgs e);
33
34     
public delegate void Link_BaoCTonKho_EventHandler(object sender, EventArgs e);
35     
36
37     
public partial class uctBaoCao : UserControl
38     {
39         
public uctBaoCao()
40         {
41             InitializeComponent();
42         }
43
44         
public static uctBaoCao uctBC = new uctBaoCao();
45
46         
//public event LinkDanhSach_KiemKho_EventHandler Link_DanhSach_KiemKho;
47
48         
public event btnKetThucNgayLamViec_EventHandler btnKetThucNgayLamViec;
49
50         
public event Link_DsSanPhamDaBan_EventHandler Link_DsSanPhamDaBan;
51
52         
public event Link_ChiPhi_DsCp_EventHandler Link_ChiPhi_DsCp;
53
54         
public event Link_BomVaGoiSP_InBC_EventHandler Link_BomVaGoiSP_InBC;
55
56         
public event Link_Sp_InBC_EventHandler Link_Sp_InBC;
57
58         
public event Link_NhapH_InBC_EventHandler Link_NhapH_InBC;
59
60         
public event Link_CongNoNcc_InBC_EventHandler Link_CongNoNcc_InBC;
61
62         
public event Link_DsNcc_InBC_EventHandler Link_DsNcc_InBC;
63
64         
public event Link_NhapH_TamDungDh_InBC_EventHandler Link_NhapH_TamDungDh_InBC;
65
66         
public event Link_BaoCTonKho_EventHandler Link_BaoCTonKho;
67
68         
private void uctBaoCao_Load(object sender, EventArgs e)
69         {
70             
//this.ComBoBox_TienHoaHong();
71         }
72
73         
/*
74         
private void ComBoBox_TienHoaHong()
75         {
76             Dictionary<
string, string> comboSource = new Dictionary<string, string>();
77             comboSource.Add(
"0", "-- Hôm nay --");
78             comboSource.Add(
"1", "-- Ngày hôm qua --");
79             comboSource.Add(
"2", "-- 7 ngày qua --");
80             comboSource.Add(
"3", "-- Tuần này --");
81             comboSource.Add(
"4", "-- Tháng này --");
82             comboSource.Add(
"5", "-- Tháng trước --");
83             comboSource.Add(
"6", "-- Năm nay --");
84             comboSource.Add(
"7", "-- Năm trước --");
85
86             cmbTienHoaHong_PhamViNgay.DataSource =
new BindingSource(comboSource, null);
87             cmbTienHoaHong_PhamViNgay.DisplayMember =
"Value";
88             cmbTienHoaHong_PhamViNgay.ValueMember =
"Key";
89         }
90         */

91
92         
private void btnBcKetThucNgayLamViec_Click(object sender, EventArgs e)
93         {
94             
if (this.btnKetThucNgayLamViec != null)
95             {
96                 DateTime ktNgayLV = DateTime.Now;
97                 
98                 
this.btnKetThucNgayLamViec(sender, e, ktNgayLV);
99             }
100         }
101
102         
private void linkLabel_TienHoaHong_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
103         {
104             tabControl_Mot.SelectedTab = tabPage_TienHoaHong;
105         }
106
107         
private void panel1_Paint(object sender, PaintEventArgs e)
108         {
109
110         }
111
112         
private void btnTienHoaHong_BCTH_Click(object sender, EventArgs e)
113         {
114
115         }
116
117         
private void btnTienHoaHong_BCCT_Click(object sender, EventArgs e)
118         {
119
120         }
121
122         
private void linkLabel_BaoCaoHangTonKho_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
123         {
124             
if (this.Link_BaoCTonKho != null)
125             {
126                 
this.Link_BaoCTonKho(sender, e);
127             }
128         }
129
130         
private void linkLabel_BanHang_DsSp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
131         {
132             
if (this.Link_DsSanPhamDaBan != null)
133             {
134                 
this.Link_DsSanPhamDaBan(sender, e);
135             }
136         }
137
138         
private void linkLabel_KetThucNgayLamViec_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
139         {
140             
if (this.btnKetThucNgayLamViec != null)
141             {
142                 DateTime ktNgayLV = DateTime.Now;
143
144                 
this.btnKetThucNgayLamViec(sender, e, ktNgayLV);
145             }
146         }
147
148         
private void linkLabelChi_Phi_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
149         {
150             
if (this.Link_ChiPhi_DsCp != null)
151             {
152                 
this.Link_ChiPhi_DsCp(sender, e);
153             }
154         }
155
156         
private void linkLabel_BomVaGoiSP_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
157         {
158             
if (this.Link_BomVaGoiSP_InBC != null)
159             {
160                 
this.Link_BomVaGoiSP_InBC(sender, e);
161             }
162         }
163
164         
private void linkLabelDsSanPham_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
165         {
166             
if (this.Link_Sp_InBC != null)
167             {
168                 
this.Link_Sp_InBC(sender, e);
169             }
170         }
171
172         
private void linkLabelNhapHang_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
173         {
174             
if (this.Link_NhapH_InBC != null)
175             {
176                 
this.Link_NhapH_InBC(sender, e);
177             }
178         }
179
180         
private void linkLabel1CongNoNCC_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
181         {
182             
if (this.Link_CongNoNcc_InBC != null)
183             {
184                 
this.Link_CongNoNcc_InBC(sender, e);
185             }
186         }
187
188         
private void linkLabel1NhaCC_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
189         {
190             
if (this.Link_DsNcc_InBC != null)
191             {
192                 
this.Link_DsNcc_InBC(sender, e);
193             }
194         }
195
196         
private void linkLabelTamDungDh_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
197         {
198             
if (this.Link_NhapH_TamDungDh_InBC != null)
199             {
200                 
this.Link_NhapH_TamDungDh_InBC(sender, e);
201             }
202         }
203
204         
205
206     }
207 }


Gõ tìm kiếm nhanh...